home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / libs / sphigs / sph_mac.hqx / SRGP port to 5.0 (compressed) / SRGP_SPHIGS Root / MacSRGP / srgp_inquire.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-13  |  1.0 KB  |  55 lines

  1. #include "HEADERS.h"
  2. #include "srgplocal.h"
  3.  
  4. #include "srgp_inquire.proto.h"
  5.  
  6. /* JJR
  7. Drawable SRGP_inquireXDrawable (canvasID canvas_id)
  8. {
  9.    return srgp__canvasTable[canvas_id].drawable.xid;
  10. }
  11. */
  12.  
  13.  
  14. void SRGP_inquireAttributes (attribute_group *att_group)
  15. {
  16.    *att_group = srgp__curActiveCanvasSpec.attributes;
  17. }
  18.  
  19. rectangle SRGP_inquireClipRectangle (void)
  20. {
  21.    return srgp__curActiveCanvasSpec.attributes.clip_rectangle;
  22. }   
  23.  
  24.  
  25. canvasID SRGP_inquireActiveCanvas (void)
  26. {
  27.    return srgp__curActiveCanvasId;
  28. }
  29.  
  30.  
  31. rectangle SRGP_inquireCanvasExtent (canvasID canvas_id)
  32. {
  33.    rectangle rect;
  34.  
  35.    rect.bottom_left.x = 0;  rect.bottom_left.y = 0;
  36.    rect.top_right.x = srgp__canvasTable[canvas_id].max_xcoord;
  37.    rect.top_right.y = srgp__canvasTable[canvas_id].max_ycoord;
  38.    return rect;
  39. }
  40.  
  41.  
  42. void
  43. SRGP_inquireCanvasSize (int canvas_id, int *width, int *height)
  44. {
  45.    *width = 1 + srgp__canvasTable[canvas_id].max_xcoord;
  46.    *height = 1 + srgp__canvasTable[canvas_id].max_ycoord;
  47. }
  48.  
  49.  
  50. int
  51. SRGP_inquireCanvasDepth (void)
  52. {
  53.    return srgp__application_depth;
  54. }
  55.